<layout name="layout" />
<div class="row">
<form action="__CONTROLLER__/ruleListHandle" method="post">
<div class="col-xs-12 widget-container-col ui-sortable">
	<foreach name="result" item="res">
	<div class="widget-box widget-color-pink">
		<div class="widget-header">
			<h5 class="widget-title">{$res.module_name}</h5>

			<div class="widget-toolbar">
				<a href="#" data-action="collapse">
					<i class="1 ace-icon fa bigger-125 fa-chevron-up"></i>
				</a>
			</div>
		</div>
		<div class="widget-body">
			<div class="widget-body-inner" style="display: block;">
				<div class="widget-main">
					<div class="row">
						<foreach name="res['rules']" item="v">
							<div class="col-md-2">
								<div class="checkbox" style="float:left;">
									<label>
										<input name="rule[]"  value="{$v.id}" class="ace ace-checkbox-2" type="checkbox" <?php if(in_array($v['id'], $res['currentRID'])) :?> checked="checked" <?php endif;?>>
										<span class="lbl">{$v.title}</span>
									</label>
								</div> 	
							</div>				
						</foreach>
					</div>
				</div>
			</div>
		</div>
	</div>
	</foreach>
	<div class="clearfix"></div>
	<input type="hidden" name="id" value="{$groupID}">
	<div class="panel-footer">
		<div class="form-group">		
				<button type="submit" class="btn btn-success btn-block">更&nbsp;&nbsp;&nbsp;&nbsp;新</button>
		</div>
	</div>
</div>
</form>
</div>